package com.aloda.utils;

import java.util.Random;

/**
 * 获取随机昵称
 */
public class NicknameUtil {
    private static final String[] ADJECTIVES = {
            "飞翔的", "奔跑的", "睡觉的", "散步的", "游泳的", "开心的", "快乐的", "迷糊的", "躺倒的", "购物的"
    };

    private static final String[] NOUNS = {
            "土豆", "西红柿", "茄子", "草莓", "苹果", "西瓜", "杨桃", "花生", "辣椒", "冬瓜"
    };

    private static final Random RANDOM = new Random();

    public static String generateNickname() {
        String adjective = ADJECTIVES[RANDOM.nextInt(ADJECTIVES.length)];
        String noun = NOUNS[RANDOM.nextInt(NOUNS.length)];
        return adjective + noun;
    }
}
